<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理员首页</title>
<link rel="stylesheet" type="text/css" href="/testjzsweb/css/reset.css">
<link rel="stylesheet" type="text/css" href="/testjzsweb/css/index.css">
<link rel="stylesheet" type="text/css" href="/testjzsweb/css/clearfix.css">
<link rel="stylesheet" type="text/css" href="/testjzsweb/css/adminindex.css">
</head>
<body>
<jsp:include page="/header.jsp"></jsp:include>
<hr>
<center>
	<div style="width:90%;min-width:900px;border:3px solid #01204f;height:600px;">
	<% try 
	{  
	   
	   if(session.getAttribute("jzsadmin")==null)
	   {
	%>
		<form action="adminloginAction" method="post">
		    我的ID：<input type="password" name="admin.jzsadminid"><br>
		    我的用户名：<input type="text" name="admin.jzsadminname"><br>
		    我的密码:<input type="password" name="admin.jzsadminpassword"><br>
		    <input type="submit" value="登陆">
		</form>
		<%}
		else{%>
		<jsp:forward page="/admin/admincontrol.jsp"/>
		<%}
		 }catch(Exception e){out.println("Exception");}%>
	</div>
	</center>
</body>
</html>